package com.tianqingwl.gsystem.common.vo;

/**
 * 分页查询用vo
 */
public class PageResultVo extends ResultVo {
    private long count;//总数
    private long pages;//页数

    public static PageResultVo success(long count,long pages, Object data) {
        PageResultVo pageResultVo = new PageResultVo();
        pageResultVo.setSuccess(true);
        pageResultVo.setCount(count);
        pageResultVo.setPages(pages);
        pageResultVo.setData(data);
        return pageResultVo;
    }

    public long getCount() {
        return count;
    }

    public void setCount(long count) {
        this.count = count;
    }

    public long getPages() {
        return pages;
    }

    public void setPages(long pages) {
        this.pages = pages;
    }
}
